﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AddComment.aspx.vb" Inherits="webfinancegdrassign4.AddComment" %>
<%--Smart Money $aver Project for University of Herts--%>
<%--Date: 01 December 2013--%>
<%--Version 1--%>
<%--Update 1 -  20th Feb 2014 - Gene Added information / fields--%>
<%--Update 2 -  20th June 2014 - Gene Added information / Tag Field fields--%>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <link href="../Content/bootstrap.css" rel="stylesheet" />
    <link href="../Content/mystyle.css" rel="stylesheet" />
    <style type="text/css">
        body {
            margin: 0px;
            padding: 0px;
            background: #eeeeee;
        }
    </style>
    <script src="../Scripts/ajax.googleapis.com.ajax.libs.jquery.1.4.2.jquery.min.js"></script>
    <script type="text/javascript" language="javascript">

        function returnempcode() {

            window.opener.focus();
            window.close();
            window.opener.location.reload(true);
        }

    </script>
    <style>
        .classrd {
        }

        .frm-rght-clr123 RadioButton lable {
        }

        .frm-rght-clr123 label {
            margin-top: -14px;
            display: block;
            margin-bottom: 5px;
        }

        .frm-rght-clr123 RadioButton, input, textarea, .uneditable-input {
            width: 120px;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server">
        <div class="row-fluid">

            <table class="table">
                <tr>
                    <th colspan="4" class="td-head" style="text-align: center; font-size: 13px; color: #999;">Add New Record</th>
                </tr>
                <tr>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label1" runat="server" Text="Author"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:TextBox ID="txt_author" runat="server" CssClass="textbox" Width="200"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_author"
                            Display="Dynamic" ErrorMessage='<img src="../images/error1.gif" alt="" />' ToolTip="Enter Author"
                            ValidationGroup="add" Width="6px" SetFocusOnError="True"><img src="../img/error1.gif" alt="" /></asp:RequiredFieldValidator>
                    </td>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label2" runat="server" Text="Comment"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:TextBox ID="txt_comment" runat="server" CssClass="textarea" TextMode="MultiLine" Rows="3" Width="200"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_comment"
                            Display="Dynamic" ErrorMessage='<img src="../images/error1.gif" alt="" />' ToolTip="Enter Comment"
                            ValidationGroup="add" Width="6px" SetFocusOnError="True"><img src="../img/error1.gif" alt="" /></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label3" runat="server" Text="Title"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:TextBox ID="txt_title" CssClass="textbox" runat="server" Width="200"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_title"
                            Display="Dynamic" ErrorMessage='<img src="../images/error1.gif" alt="" />' ToolTip="Enter Title"
                            ValidationGroup="add" Width="6px" SetFocusOnError="True"><img src="../img/error1.gif" alt="" /></asp:RequiredFieldValidator>
                    </td>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label4" runat="server" Text="Money Data"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:DropDownList ID="ddl_moneydata" runat="server" DataSourceID="SqlDataSource007" DataTextField="Company_Name" DataValueField="ID" Width="200px">
                        </asp:DropDownList>
                        <asp:SqlDataSource ID="SqlDataSource007" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString08 %>" ProviderName="<%$ ConnectionStrings:ConnectionString08.ProviderName %>" SelectCommand="SELECT [ID], [Company_Name] FROM [sms_moneydata]"></asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label5" runat="server" Text="Rating"></asp:Label></td>

                    <td class="frm-rght-clr123" style="border: 0px none none; padding: 10px; margin: 0px">
                        <asp:RadioButton ID="RadioButton1" Checked="true" runat="server" CssClass="classrd" GroupName="Star" Text="Star1" Style="border: 0px none none; padding: 0px; margin: 0px; float: left" />
                        <asp:RadioButton ID="RadioButton2" runat="server" CssClass="classrd" GroupName="Star" Text="Star2" Style="border: 0px none none; padding: 0px; margin: 0px;" />
                        <asp:RadioButton ID="RadioButton3" runat="server" CssClass="classrd" GroupName="Star" Text="Star3" Style="border: 0px none none; padding: 0px; margin: 0px; float: left" />
                        <asp:RadioButton ID="RadioButton4" runat="server" CssClass="classrd" GroupName="Star" Text="Star4" Style="border: 0px none none; padding: 0px; margin: 0px;" />
                        <asp:RadioButton ID="RadioButton5" runat="server" CssClass="classrd" GroupName="Star" Text="Star5" Style="border: 0px none none; padding: 0px; margin: 0px" />

                    </td>

                    <td class="frm-lft-clr123">
                                Tag</td>
                            <td class="frm-rght-clr123">
                                
                        <asp:DropDownList ID="ddl_tagname" runat="server" DataSourceID="SqlDataSource8" DataTextField="Tag" DataValueField="ID" Width="200px">
                        </asp:DropDownList>
                                
                        <asp:SqlDataSource ID="SqlDataSource8" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString09 %>" ProviderName="<%$ ConnectionStrings:ConnectionString09.ProviderName %>" SelectCommand="SELECT [ID], [Tag] FROM [sms_tags]"></asp:SqlDataSource>
                                
                            </td>
                </tr>
                <tr>
                    <td colspan="4" class="frm-lft-clr123" style="text-align: center;"><%--<a href="javascript:returnempcode('Raghu')" >Click</a>--%>
                        <asp:Button ID="Button3" runat="server" Text="Save" CssClass="button" Style="width: 70px;" OnClick="Button3_Click" ValidationGroup="add" />
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Addsmscomments %>" ProviderName="<%$ ConnectionStrings:Addsmscomments.ProviderName %>" SelectCommand="SELECT * FROM [sms_info]"></asp:SqlDataSource>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
